Xbasic
SQL::SchemaClear Method
Syntax
Result_Flag as L = Clear()
Arguments
- Result_Flag
TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).
- SQL::Schema
A SQL::Schema created with a DIM statement.
- Name
The name of the schema.
Description
The Clear() method clears out the schema as if it had just been created.
Example
dim conn as SQL::Connection dim ti as SQL::TableInfo dim sch as SQL::Schema connString = "{A5API='Access', FileName='c:\program files\a5v8\mdbfiles\alphasports.mdb'}" if .not. conn.open(connString) ui_msg_box("Error", conn.CallResult.text) end end if if .not. conn.GetSchema(sch) then ui_msg_box("Error", conn.CallResult.text) conn.close() end end if ui_msg_box("Tables", sch.ListTables()) conn.close()
See Also